import { DEL_MSG,ALL_READ,SET_READ } from './actionTypes'
// 删除 消息

const delMsg = (index)=>{
	return {
		type:DEL_MSG,
		index
	}
}

// 设置已读
const setRead = (index)=>{
	return {
		type:SET_READ,
		index
	}
}
// 全部已读
const allRead = ()=>{
	return {
		type:ALL_READ
	}
}

export {
	delMsg,
	setRead,
	allRead
}